<?php
    include( "config/ini.php");
	if($_POST['username']){
		$name=$_POST['username'];
		$sql="select * from phpguestbook where username='{$name}'";
       $selquery=  mysql_query($sql);
       $num= mysql_num_rows($selquery);
       echo $num;
	}
?>